/*
 * myThread.cpp
 *
 *  Created on: 19.11.2012
 *      Author: Michael
 */

#include "rodos.h"
#include <stdio.h>

#include "hardware.h"
#include "Interfaces/I2C.h"

#include <math.h>
#include "stdlib.h"

#include "hal_uart.h"

/****** Use modulId 2000 just be be found by other example: ceiler **/

static Application module01("MyThread", 1000);

class myThread: public Thread {
public:
	myThread(const char* name) :
			Thread(name, 500) {
	}

	void run() {

		setPeriodicBeat(1 * SECONDS, 100 * MILLISECONDS);

		while (1) {
			uart2.write("hallo\n",6);
			suspendUntilNextBeat();
		}

	}
//private:
//	float fbuffer1[10];
//	float fbuffer2[10];
};

//myThread thread("MyThread");
/***********************************************************************/

